<%-- 
    Document   : BasicInfo
    Created on : Apr 4, 2011, 4:39:35 PM
    Author     : DIT-0958372
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="userInfo" class="Bean.Account.AccountSC" scope="session"/>
<html>
    <jsp:include page="DatePicker_Head.jsp"/>

    <body>
        <form method="post" action="../ManageProfileServlet">
            Your Assigned ID: <input name="acName" value="<jsp:getProperty name="userInfo" property="acName"/>"
                                     type="text" disabled><br>

            User Name: <input name="userName" value="<jsp:getProperty name="userInfo" property="userName"/>"
                              type="text"><br>

            Account Type: <input name="acType" value="<jsp:getProperty name="userInfo" property="acType"/>"
                                 type="text"><br>
            <!-- JSTL used here to create a combo box           -->
            Sex: <select name="sex">
                <c:choose>
                    <c:when test="${userInfo.sex == 'M'}">
                        <option value="M" selected>M</option>
                        <option value="F" >F</option>
                    </c:when>
                    <c:when test="${userInfo.sex == 'M'}">
                        <option value="M" >M</option>
                        <option value="F" selected>F</option>
                    </c:when>
                    <c:otherwise>
                        <option value="" selected></option>
                        <option value="M" >M</option>
                        <option value="F" >F</option>
                    </c:otherwise>
                </c:choose>
            </select>

            <!--Using the datePicker from jQuery UI             -->
            Birthday: <input id="datepicker" name="DOB" value="${userInfo.DOB}"
                             type="text"><br>

            Marital Status: <input name="maritalStatus" value="${userInfo.maritalStatus}"
                                   type="text"><br>

            Blood Type :<input name="bloodType" value="<jsp:getProperty name="userInfo" property="bloodType"/>"
                               type="text"><br>

            Home Town: <input name="hometown" value="<jsp:getProperty name="userInfo" property="hometown"/>"
                              type="text"><br>

            Current Location: <input name="currentLocation" value="<jsp:getProperty name="userInfo" property="currentLocation"/>"
                                     type="text"><br>

            <!--            <a href="ContactInfo.jsp">Next Page<br>-->

            <input value="Save" type="submit"><br>

            <input value="Cancel" type="reset"><br>

            <input type="hidden" name="acCondition" value="basicInfo">
        </form>
    </body>
</html>
